<?php

namespace App\Modules\Admin\Entities\Equipment;

use App\Models\Model;
use App\Modules\Admin\Entities\Member\UsersModel;

class DeviceWarrantyModel extends Model
{

    protected $table='device_warranty_record';
    protected $primaryKey='id';


    public function user_info(){
        return $this->hasOne(UsersModel::class,'id','user_id')->select(['id','username']);
    }
}
